Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

174
Views
Rails. I can't see my plan subscription in Stripe::Customer.retrieve("cus_XYZ") console

I have created my product with price and when I go to consult the clients the subscription field does not appear.

# rails console
Stripe::Customer.retrieve("cus_XYZ")

However, the subscription appears when I run in the console:

Stripe::Subscription.retrieve("sub_1XYZ")

I'd like it to appear when I do a query Stripe::Customer.retrieve, as I need the "subscription" field appears it

If there is any way to retrieve the subscription field in customer I would be very grateful to know.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

As noted in the API reference, the subscriptions are expandable and not included by default.

You can get these, but you need to explicitly request them via expansion:

Stripe::Customer.retrieve({
  id: 'cus_123',
  expand: ['subscriptions'],
})
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!